/**
*  
*
***/
#include <iostream>
#include <string>

/**
*
*
*
**/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <strings.h>
#include <fcntl.h>
#include <arpa/inet.h>
#include <assert.h>
#include <errno.h>


int main()
{

	int listenfd;
	if((listenfd = socket(PF_INET , SOCK_STREAM,0)) <0)
		exit(-1);
	
	struct sockaddr_in servaddr;
	servaddr.sin_family = AF_INET;
	servaddr.sin_port = htons(65533);
	servaddr.sin_addr.s_addr = inet_addr("192.168.2.23");
		
	if(connect(listenfd , (struct sockaddr *)&servaddr , sizeof(servaddr)) < 0)
			exit(-1);
	
	char *buf = "hello word";
	if(send(listenfd ,buf , sizeof(buf),0)<=0)
			exit(-1);	

	
	close(listenfd);
	return 0;
}
